<template>
  <div>
    <h3></h3>
    <div>{{list}}</div>
  </div>
</template>

<script>
export default {
  data(){
    return{
      list:[]
    }
  },
  http: {
    headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}
  },
  created(){
    this.getList()
  },
  methods:{
    getList(){
      // const res = await this.$http.get('getDeviceData.action')
      // //this.list = res 
      // console.log(res)
    }

    // ajax({ 
    //     url:"http://172.16.14.210:8081/InspectHost/getDeviceData.action", 
    //     type:'GET', 
    //     dataType:'JSONP',  // 处理Ajax跨域问题
    //     success: function(data){ 
    //         console.log(success)
    //     } 
    // }); 
  }
}
</script>

<style lang="less" scoped>

</style>